package com.vsd.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.demo.mobile.MobException;
import com.demo.mobile.MobileInfo;
import com.vsd.domain.CreditGoods;



public interface CreditGoodsService {
	
	Page<CreditGoods> findAll(Pageable p);
	
	Page<CreditGoods> findByCateCode(String code,Pageable p);
	
	CreditGoods findOne(String id);
	
	void changeCreditGoods(MobileInfo user,String id) throws MobException;

	Page<CreditGoods> findByCateCodeLike(String code, Pageable p);
	
	int updateByPrimaryKeySelective(CreditGoods goods);
	
	void save(CreditGoods goods);
	
	void deleteById(String id);
}
